package com.ship.dispatch.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ship.common.core.mapping.SearchItem;
import com.ship.common.core.mapping.TableColumn;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class VirtualShipOptimizeBO {
    /**
     * 船舶名称
     */
    private String shipName;
    /**
     * 船型
     */
    private Boolean shipType;

    /**
     * 油耗
     */
    private BigDecimal shipOilConsumption;

    /**
     * 船旗国
     */
    private List<String> shipCountry;

    /**
     * 租用时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date leaseTime;

    /**
     * 租用时长
     */
    private Integer leaseDuration;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 剩余货量
     */
    private BigDecimal goodsQuantityResidue = new BigDecimal(0);
    /**
     * 方案id
     */
    private Long schemeId;
    /**
     * 计划id
     */
    private Long planId;
    /**
     * 资源合同id
     */
    private Long conId;

    /**
     * 舱容
     */
    @NotNull(message = "舱容不能为空")
    private BigDecimal storageCapacity;
}
